package com.example.demo.controller;

import com.example.demo.common.AjaxResult;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

@RestController
@RequestMapping("/user")
public class UserController {

    @RequestMapping("/ep")
    public AjaxResult getException() {
        int i = 1 / 0 ;
        return AjaxResult.error("统一异常处理失败");
    }

}
